package com.lmt.repository;

import com.lmt.entity.Dissertation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * Date 2018/07/17
 *
 * @author MT-Lin
 */
@Repository
public interface DissertationRepository extends JpaRepository<Dissertation, String> {

	/**
	 * 根据所属分类和专题名称查找
	 * @param classifyId 所属分类ID
	 * @param designation 专题名称
	 * @return Dissertation
	 */
	Dissertation findByClassifyIdAndDesignation(String classifyId, String designation);
}
